package com.atguigu.gmall.order.mapper;

import com.atguigu.gmall.model.order.OrderDetail;
import com.atguigu.gmall.model.order.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author tongatong
 * @name OrderInfoMapper
 * @description
 * @date 2021/9/25
 * @time 11:20
 */
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {
    IPage<OrderInfo> selectPageByUserId(Page<OrderInfo> pageParam, String userId);
    //这个数据接口可以忽略.
    List<OrderDetail> selectOrderDetailByOrderId(@Param("orderId")Long orderId);

}
